/*
 * @Author: namelll 2677065112@qq.com
 * @Date: 2023-06-05 17:12:09
 * @LastEditors: namelll 2677065112@qq.com
 * @LastEditTime: 2023-06-05 17:13:36
 * @FilePath: \vue3-ts-project\src\store\modules\types\type.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import type { RouteRecordRaw } from "vue-router"
import type { CategoryObj } from "@/api/product/attr/type"
//定义小仓库数据state数据类型
export interface UserState {
    token: string | null
    menuRoutes: RouteRecordRaw[]
    username: string
    avatar: string
}

//定义分类仓库数据state数据类型
export interface CategoryState {
    c1Id:string|number,
    c2Id:string|number,
    c3Id:string|number,
    c1Arr:CategoryObj[],
    c2Arr:CategoryObj[],
    c3Arr:CategoryObj[]
}